var __extends =
    (this && this.__extends) ||
    (function () {
      var o = function (n, t) {
        return (o =
          Object.setPrototypeOf ||
          ({ __proto__: [] } instanceof Array &&
            function (o, n) {
              o.__proto__ = n;
            }) ||
          function (o, n) {
            for (var t in n)
              Object.prototype.hasOwnProperty.call(n, t) && (o[t] = n[t]);
          })(n, t);
      };
      return function (n, t) {
        function e() {
          this.constructor = n;
        }
        if ("function" != typeof t && null !== t)
          throw new TypeError(
            "Class extends value " + String(t) + " is not a constructor or null"
          );
        o(n, t),
          (n.prototype =
            null === t
              ? Object.create(t)
              : ((e.prototype = t.prototype), new e()));
      };
    })(),
  ModifyLockView = (function (o) {
    function n() {
      var n = o.call(this) || this;
      return (
        n.btn_back_modifyLock.on(Laya.Event.CLICK, n, n.onModifyLockBackFn),
        n.btn_modify_itemLock.on(Laya.Event.CLICK, n, n.onItemLockChangeFn),
        n.btn_modify_phoneSecret.on(Laya.Event.CLICK, n, n.onPasswordChangeFn),
        n
      );
    }
    return (
      __extends(n, o),
      (n.openModifyView = function () {
        return (
          null == this.modLockVC && (this.modLockVC = new n()), this.modLockVC
        );
      }),
      (n.prototype.onItemLockChangeFn = function () {
        var o = ModifyItemLockView.openModifyView();
        o.pos(0, 40), Laya.stage.addChild(o);
      }),
      (n.prototype.onPasswordChangeFn = function () {
        var o = ModifyPasswordView.openModifyView();
        o.pos(0, 40), Laya.stage.addChild(o);
      }),
      (n.prototype.onModifyLockBackFn = function () {
        this.removeSelf();
      }),
      n
    );
  })(ui.HouseRoomController.ModifyLockViewUI);
